home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 5 / developer source - volume 5.iso / dobbs / jun94 / teteaf02.gif < prev    next >
Graphics Interchange Format  |  1997-01-13  |  108.9 KB  |  570x472  |  8-bit (184 colors)
   ocr: Given the following Scan Page Configurations (SC) of: Page Contiguration Comments 1 Initialization Put one copy of MY KEY into play 2 Signaled The Reader Page 3 Signaled The Writer Page 4 Cyclic Will signal page 2 when wanting to read 5 Interrupt Will signal page 3 when wanting to write Shared memory that must be protected from having two pages read/write at the same time Init Page SEND (MY_KEY) Page 2 : some code grab the shared Page - 3 some code : resource the shared WAIT (MY_KEY) : grab resource : got it, release now it. read it WAIT (MY_KEY) write it : now SEND (MY_KEY) - got it, release ...